package com.abocode.aichat.app.vo;

import com.abocode.aichat.app.constant.SuccessCode;
import com.abocode.aichat.app.utils.EncryptionUtils;
import lombok.Data;

/**
 * Created by guanxf on 2015/12/30.
 */
@Data
public class ResponseBuilder extends BaseResponse {
    private Object content;
    public ResponseBuilder(String status, Object content,String  message) {
        super(status,message);
        this.content = content;
    }


    public static Object success(Object content) {
        return  EncryptionUtils.toBody(new ResponseBuilder(SuccessCode.SUCCESS, content, SuccessCode.MESSAGE));
    }


}
